/**
 * Created by subo on 16/4/20.
 */


function load_banners() {
	var banner_images = ['img/product_home_banner1.jpg', 'img/product_home_banner2.jpg', 'img/product_home_banner3.jpg'];
	var list = $('.parallax-slider').children('ul');
	var item = list.children('li:first-child');
	item.find('img').attr('src', banner_images[0]);
	var i = 1;
	while (i < banner_images.length) {
		item = item.clone();
		item.appendTo(list);
		item.find('img').attr('src', banner_images[i]);
		i++;
	}

	//Sliders
	$(themeOptions.themexSlider).each(function() {
		var sliderOptions= {
			speed: parseInt($(this).find('.slider-speed').val()),
			pause: parseInt($(this).find('.slider-pause').val()),
			effect: $(this).find('.slider-effect').val()
		};

		$(this).themexSlider(sliderOptions);
	});
}